package cn.unknowpupil.init.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

/**
 * Created at 2020/11/4 by w10g <br>
 * Initialize EmailVo ... <br>
 *
 * @author unknowpupil
 * @since 0.0.1
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EmailVo {
    /** 收件人，支持多个收件人 */
    @NotEmpty(message = "最少要有一个收件人")
    private String[] tos;

    @NotBlank(message = "标题未必填项")
    private String subject;

    @NotBlank(message = "内容未必填项")
    private String content;
}
